package com.cj.dao;

import com.cj.entity.Employee;

import java.util.List;

/**
 * @Author：weiwei
 * @name：EmployeeDao
 * @Date：2024/9/23 9:22
 */
public interface EmployeeDao extends BaseDao{

    //查询员工列表方法
    public List<Employee> empList();

    //添加员工信息
    public int addEmployee(Employee emp);

    //修改员工信息
    public int updateEmployee(Employee emp);

    //删除员工信息
    public int deleteEmployee(int id);

    public Employee getEmployeeById(int id);

    //分页查询
    List<Employee> empListBypage(int begin, int limit);
}
